<?php   /*已弃用，改为ajaxdel.php代替*/

$id = $_GET['id'];

$db = include './db.php';

array_splice($db, $id,1);

$str = var_export($db,true);

$str ="<?php return ".$str." ?>";

file_put_contents('./db.php', $str);

header('Location:./index.php');

 ?>